Skip to content

changed iframe title#2601

Open
Vishala230531 wants to merge 1 commit intomainfrom
feature/LI-144341
Open

changed iframe title#2601
Vishala230531 wants to merge 1 commit intomainfrom
feature/LI-144341

Conversation

@Vishala230531
Copy link
Contributor

@Vishala230531 Vishala230531 commented Feb 25, 2026

Description

Merchant - Nike reported accessibility issue with JS v5 iframe.
Two requests:

  1. Add role="presentation" on the iframe, so screen reader user are not read "frame"
  2. Update iframe title to title="Pay with PayPal"

https://paypal.atlassian.net/browse/LI-144341

Changed Constants in sdk/constants module
paypal/paypal-sdk-constants#165

Screenshot 2026-02-24 at 10 33 27 AM

@Vishala230531 Vishala230531 requested a review from a team as a code owner February 25, 2026 15:59
>
<div
role="link"
role="presentation"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be added to the iframe itself and not the inner div.

// $FlowFixMe
const win = frame.contentWindow;
const button = win.document.querySelector('[role="link"]');
const button = win.document.querySelector("[data-button]");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not need to change the role here we want it to stay link, we just want to add the role on the iframe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants